package com.ld.admin.model.system.filelistener;

import com.ld.shieldsb.annotation.field.DealField.Field;
import com.ld.shieldsb.annotation.field.db.Unique;
import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;
import com.ld.shieldsb.common.web.model.BasicIdEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * 文件监听器(sys_filelistener)
 * 
 * @ClassName SysFilelistenerModel
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年01月18日 14:41:06
 *
 */
@Model(name = "文件监听器")
@TableName("sys_filelistener")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SysFilelistenerModel extends BasicIdEntity {
    private static final long serialVersionUID = 7459075847210575500L;

    /*主键*/
    private Long id;
    /*监控名称*/
    private String name;
    /*唯一识别码*/
    @Field(name = "唯一识别码")
    @Unique
    private String keyCode;
    /*监控路径*/
    private String path;
    /*时间间隔（秒）*/
    private Integer intervals;
    /*允许的后缀，空表示不限制*/
    private String allowedExtensions;
    /*排除的文件(正则)*/
    private String exclusionRex;
    /*是否启动0否1是*/
    private Integer isStart;
    /*创建人姓名*/
    private String createName;
    /*修改人姓名*/
    private String updateName;
}
